// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0

package v1alpha1

import (
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// Configuration provides configuration for the ShootResourceReservation admission controller.
type Configuration struct {
	metav1.TypeMeta

	// UseGKEFormula enables the calculation of resource reservations based on
	// the CPU and memory resources available for a machine type.
	UseGKEFormula bool `json:"useGKEFormula"`
	// Selector optionally defines a label selector for which the GKE formula should be applied.
	// Defaults to empty LabelSelector, which matches everything.
	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`
}
